A Concurrent Perspective on Smart Contracts
نویسندگان
چکیده
In this paper, we explore remarkable similarities between multi-transactional behaviors of smart contracts in cryptocurrencies such as Ethereum and classical problems of shared-memory concurrency. We examine two real-world examples from the Ethereum blockchain and analyzing how they are vulnerable to bugs that are closely reminiscent to those that often occur in traditional concurrent programs. We then elaborate on the relation between observable contract behaviors and well-studied concurrency topics, such as atomicity, interference, synchronization, and resource ownership. The described contracts-as-concurrentobjects analogy provides deeper understanding of potential threats for smart contracts, indicate better engineering practices, and enable applications of existing state-of-the-art formal verification techniques.
منابع مشابه
Adding Concurrency to Smart Contracts
Modern cryptocurrency systems, such as Ethereum, permit complex financial transactions through scripts called smart contracts. These smart contracts are executed many, many times, always without real concurrency. First, all smart contracts are serially executed by miners before appending them to the blockchain. Later, those contracts are serially re-executed by validators to verify that the sma...
متن کاملConsumers’ Perspective on Full-Scale Adoption of Smart Meters: A Case Study in Västerås, Sweden
Large-scale deployment of reliable smart electricity metering networks has been considered as the first step towards a smart, integrated and efficient grid. On the consumer’s side, however, the real impact is still uncertain and limited. This paper evaluates the consumer’s perspective in the city of Västerås, Sweden, where full implementation of smart meters has been reached. New services, such...
متن کاملAnalysis of Foreign Investment Contracts in the oil Industry from the Perspective of Technological Learning
The primary sources of energy for countries rich in oil and gas like Iran are petroleum, petroleum products, and natural gas resources. Foreign investments in the petroleum industry are concluded in the form of collaboration agreements, and the key to developing countries’ success in such agreements is technological learning. In the present study, we use mixed-method research to analyze differe...
متن کاملA Systematic Mapping Study on Current Research Topics in Smart Contracts
An appealing feature of blockchain technology is smart contracts. A smart contract is executable code that runs on top of the blockchain to facilitate, execute and enforce an agreement between untrusted parties without the involvement of a trusted third party. In this paper, we conduct a systematic mapping study to collect all research that is relevant to smart contracts from a technical perspe...
متن کاملBlockchain-based Smart Contracts: A Systematic Mapping Study
An appealing feature of blockchain technology is smart contracts. A smart contract is executable code that runs on top of the blockchain to facilitate, execute and enforce an agreement between untrusted parties without the involvement of a trusted third party. In this paper, we conduct a systematic mapping study to collect all research that is relevant to smart contracts from a technical perspe...
متن کامل